package xml;

import java.awt.Point;

import javax.xml.bind.annotation.*;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="xmlpointtype")
public class PointType {
	
	@XmlAttribute
	public double x;
	@XmlAttribute
	public double y;
	
	public PointType(){}
	
	public PointType(double x, double y) {
		this.x = x;
		this.y = y;
	}
	
	public PointType(Point p) {
		this.x = p.getX();
		this.y = p.getY();
	}
	
    public double getX() {
        return x;
    }
    
    public double getY() {
    	return y;
    }
}
